package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.toyhouse.ToyHouseUserData;
import com.yanqu.road.entity.activity.toyhouse.config.ToyHouseBlockConfig;
import com.yanqu.road.entity.activity.toyhouse.config.ToyHouseCombConfig;
import com.yanqu.road.entity.activity.toyhouse.config.ToyHouseOrderConfig;
import com.yanqu.road.entity.activity.toyhouse.config.ToyHouseScoreConfig;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class ToyHouseActivityBusiness {

    // ========== 配置 ==========

    public static Map<Integer, ToyHouseBlockConfig> getToyHouseBlockConfigMap(int activityId) {
        return DaoHelper.getToyHouseBlockConfigDaoImpl().getToyHouseBlockConfigMap(activityId);
    }

    public static Map<Integer, ToyHouseCombConfig> getToyHouseCombConfigMap(int activityId) {
        return DaoHelper.getToyHouseCombConfigDaoImpl().getToyHouseCombConfigMap(activityId);
    }

    public static Map<Integer, ToyHouseOrderConfig> getToyHouseOrderConfigMap(int activityId) {
        return DaoHelper.getToyHouseOrderConfigDaoImpl().getToyHouseOrderConfigMap(activityId);
    }

    public static Map<Integer, ToyHouseScoreConfig> getToyHouseScoreConfigMap(int activityId) {
        return DaoHelper.getToyHouseScoreConfigDaoImpl().getToyHouseScoreConfigMap(activityId);
    }

    // ========== 数据 ==========

    public static ToyHouseUserData getToyHouseUserData(int activityId, long userId) {
        return DaoHelper.getToyHouseUserDataDaoImpl().getToyHouseUserData(activityId, userId);
    }

    public static boolean addToyHouseUserData(ToyHouseUserData data) {
        return DaoHelper.getToyHouseUserDataDaoImpl().add(data);
    }

    public static boolean updateToyHouseUserData(ToyHouseUserData data) {
        return DaoHelper.getToyHouseUserDataDaoImpl().update(data);
    }

}
